package com.gurid.service.edu.feign;

import com.gurid.common.base.result.R;
import com.gurid.service.edu.feign.fallback.OssFileServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient(value = "service-oss", fallback = OssFileServiceFallback.class)
public interface OssFileService {

    //微服务Feign测试
    @GetMapping("/admin/oss/file/test")
    public R test();

    @DeleteMapping("/admin/oss/file/remove")
    public R delete(@RequestBody String url);
}
